
package com.android.matmanual;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
// NFC SEEK start
//import com.android.internal.telephony.IccIoResult;
import com.android.internal.telephony.IccUtils;
import com.android.internal.telephony.CommandException;
import com.android.internal.telephony.ITelephony;
//import com.android.internal.telephony.QosSpec;
//import com.android.internal.telephony.IOemHookCallback;
import com.android.internal.telephony.IccCard;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.CallManager;
import com.android.internal.telephony.DefaultPhoneNotifier;
import android.telephony.NeighboringCellInfo;
import android.telephony.CellInfo;
import android.telephony.NeighboringCellInfo;
import android.telephony.TelephonyManager;

public class HandsetTest extends BaseActivity {
    
	private TextView mTextView;
	private ImageButton imageButton = null;
	private int num = 0;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.handset_test);  
        setTitle("通话听筒测试");
        
        imageButton = (ImageButton)findViewById(R.id.dial_btn);
        imageButton.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				DialNumber();
			}			
		});	
        
        mTextView = (TextView)findViewById(R.id.dial_infor);
        mTextView.setText("请按拨号键图标进行拨号操作...");
        
    }
    
    private void DialNumber()
    {    	
			Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "112"));			
			startActivity(intent);
		
	}    	
}
		 